home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d16 / winsrc.arc / WINFRACT.H < prev    next >
Text File  |  1991-06-16  |  7KB  |  231 lines

  1. /* file menu items */
  2.  
  3. #define     IDM_NEW      100
  4. #define     IDM_OPEN     101
  5. #define     IDM_SAVE     102
  6. #define     IDM_SAVEAS   103
  7. #define     IDM_PRINT    104
  8. #define     IDM_MAPIN    115
  9. #define     IDM_MAPOUT   116
  10. #define     IDM_3D       113
  11. #define     IDM_3DOVER   114
  12. #define     IDM_EXIT     105
  13. #define     IDM_ABOUT    106
  14. #define     IDM_COPY     117
  15. #define     IDM_HELP_INDEX     107
  16. #define     IDM_HELP_KEYBOARD  108
  17. #define     IDM_HELP_HELP      109
  18. #define     ID_VERSION         110
  19. #define     ID_COMMENT         111
  20. #define     ID_FILETITLE       112
  21. #define     ID_LISTTITLE       112
  22.  
  23. /* Math Tools */
  24. #define     IDM_MATH_TOOLS    1001
  25. #define     IDM_COORD         1002
  26. #define     IDM_ZOOM          1003
  27. #define     IDM_SIZING          1004
  28. #define     IDM_TRACKING      1005
  29.  
  30. /* fractal image stuff */
  31.  
  32. #define     IDM_SIZE1    151
  33. #define     IDM_SIZE2    152
  34. #define     IDM_SIZE3    153
  35. #define     IDM_SIZE4    154
  36. #define     IDM_ITER1    161
  37. #define     IDM_ITER2    162
  38. #define     IDM_ITER3    163
  39.  
  40. /* fractal formula stuff */
  41.  
  42. #define     IDM_FRACTAL  171
  43. #define     IDM_FORMULA  172
  44. #define     IDM_IMAGE    173
  45. #define     IDM_DOODADS  174
  46. #define     IDM_CYCLE    175
  47.  
  48. #define        ID_FRACNAME    200
  49. #define        ID_FRACPARAM1  201
  50. #define        ID_FRACPARAM2  202
  51. #define        ID_FRACPARAM3  203
  52. #define        ID_FRACPARAM4  204
  53. #define        ID_FRACPARTX1  205
  54. #define        ID_FRACPARTX2  206
  55. #define        ID_FRACPARTX3  207
  56. #define        ID_FRACPARTX4  208
  57. #define        ID_FRACXMIN    211
  58. #define        ID_FRACXMAX    212
  59. #define        ID_FRACYMIN    213
  60. #define        ID_FRACYMAX    214
  61.  
  62. /* window sizing stuff */
  63.  
  64. #define     ID_ISIZE       250
  65. #define     ID_ISIZE1      251
  66. #define     ID_ISIZE2      252
  67. #define     ID_ISIZE3      253
  68. #define     ID_ISIZE4      254
  69. #define     ID_ISIZE5      255
  70. #define     ID_ISIZE6      256
  71. #define     ID_ISIZE7      257
  72. #define     ID_ISIZE8      258
  73. #define     ID_ISIZEX      259
  74. #define     ID_ISIZEY      260
  75. #define     ID_ICOLORS     270
  76. #define     ID_ICOLORS1    271
  77. #define     ID_ICOLORS2    272
  78. #define     ID_ICOLORS3    273
  79.  
  80. /* options and doodads menu */
  81.  
  82. #define     ID_DEBUGFLAG   290
  83. #define     ID_PASS        300
  84. #define     ID_PASS1       301
  85. #define     ID_PASS2       302
  86. #define     ID_PASSS       303
  87. #define     ID_PASSB       304
  88. #define     ID_MATH        305
  89. #define     ID_MATHI       306
  90. #define     ID_MATHF       307
  91. #define     ID_MAXIT       310
  92. #define     ID_BIOMORPH    311
  93. #define     ID_DECOMP      312
  94. #define     ID_INSIDE      313
  95. #define     ID_OUTSIDE     314
  96. #define     ID_INVERT      315
  97.  
  98. /* Color-Cycling stuff */
  99.  
  100. #define     ID_CYCLEOFF    330
  101. #define     ID_CYCLEON     331
  102. #define     ID_CYCLEOUT    332
  103. #define     ID_CYCLEIN     333
  104. #define     ID_CYCLESTAT   334
  105. #define     ID_CYCLECHG    335
  106. #define     ID_CYCLELOW    336
  107. #define     ID_CYCLEMED    337
  108. #define     ID_CYCLEHIGH   338
  109.  
  110. /* 3D stuff */
  111. #define     ID_PREVIEW     201
  112. #define     ID_SHOWBOX     202
  113. #define     ID_SPHERICAL   203
  114. #define     ID_PREVIEWFACTOR 204
  115. #define     ID_STEREO1     205
  116. #define     ID_STEREO2     206
  117. #define     ID_STEREO3     207
  118. #define     ID_STEREO4     208
  119. #define     ID_FILL1       211
  120. #define     ID_FILL2       212
  121. #define     ID_FILL3       213
  122. #define     ID_FILL4       214
  123. #define     ID_FILL5       215
  124. #define     ID_FILL6       216
  125. #define     ID_FILL7       217
  126. #define     ID_FILL8       218
  127.  
  128. #define     ID_ANS1        201
  129. #define     ID_ANS2        202
  130. #define     ID_ANS3        203
  131. #define     ID_ANS4        204
  132. #define     ID_ANS5        205
  133. #define     ID_ANS6        206
  134. #define     ID_ANS7        207
  135. #define     ID_ANS8        208
  136. #define     ID_ANS9        209
  137. #define     ID_ANS10       210
  138. #define     ID_ANS11       211
  139. #define     ID_ANS12       212
  140. #define     ID_ANS13       213
  141. #define     ID_ANS14       214
  142. #define     ID_ANS15       215
  143.  
  144. /* generic fullscreen stuff */
  145.  
  146. #define     ID_PROMPT00    300
  147. #define     ID_PROMPT01    301
  148. #define     ID_PROMPT02    302
  149. #define     ID_PROMPT03    303
  150. #define     ID_PROMPT04    304
  151. #define     ID_PROMPT05    305
  152. #define     ID_PROMPT06    306
  153. #define     ID_PROMPT07    307
  154. #define     ID_PROMPT08    308
  155. #define     ID_PROMPT09    309
  156. #define     ID_PROMPT10    310
  157. #define     ID_PROMPT11    311
  158. #define     ID_PROMPT12    312
  159. #define     ID_PROMPT13    313
  160. #define     ID_PROMPT14    314
  161. #define     ID_PROMPT15    315
  162. #define     ID_PROMPT16    316
  163. #define     ID_PROMPT17    317
  164. #define     ID_PROMPT18    318
  165. #define     ID_PROMPT19    319
  166. #define     ID_ANSWER01    321
  167. #define     ID_ANSWER02    322
  168. #define     ID_ANSWER03    323
  169. #define     ID_ANSWER04    324
  170. #define     ID_ANSWER05    325
  171. #define     ID_ANSWER06    326
  172. #define     ID_ANSWER07    327
  173. #define     ID_ANSWER08    328
  174. #define     ID_ANSWER09    329
  175. #define     ID_ANSWER10    330
  176. #define     ID_ANSWER11    331
  177. #define     ID_ANSWER12    332
  178. #define     ID_ANSWER13    333
  179. #define     ID_ANSWER14    334
  180. #define     ID_ANSWER15    335
  181. #define     ID_ANSWER16    336
  182. #define     ID_ANSWER17    337
  183. #define     ID_ANSWER18    338
  184. #define     ID_ANSWER19    339
  185.  
  186.  
  187. /* status box */
  188.  
  189. #define     IDS_STATUS    340
  190. #define     IDS_LINE1     341
  191. #define     IDS_LINE2     342
  192. #define     IDS_LINE3     343
  193. #define     IDS_LINE4     344
  194. #define     IDS_LINE5     345
  195. #define     IDS_LINE6     346
  196. #define     IDS_LINE7     347
  197. #define     IDS_LINE8     348
  198. #define     IDS_LINE9     349
  199.  
  200. /* Control IDs */
  201.  
  202. #define     IDC_FILENAME  400
  203. #define     IDC_EDIT      401
  204. #define     IDC_FILES     402
  205. #define     IDC_PATH      403
  206. #define     IDC_LISTBOX   404
  207.  
  208. int PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
  209. BOOL InitApplication(HANDLE);
  210. BOOL InitInstance(HANDLE, int);
  211. long FAR PASCAL MainWndProc(HWND, unsigned, WORD, LONG);
  212. BOOL FAR PASCAL About(HWND, unsigned, WORD, LONG);
  213. BOOL FAR PASCAL HelpBox(HWND, unsigned, WORD, LONG);
  214. BOOL FAR PASCAL SaveAsDlg(HWND, unsigned, WORD, LONG);
  215. BOOL FAR PASCAL SelectFractal(HWND, unsigned, WORD, LONG);
  216. BOOL FAR PASCAL SelectFracParams(HWND, unsigned, WORD, LONG);
  217. BOOL FAR PASCAL SelectImage(HWND, unsigned, WORD, LONG);
  218. BOOL FAR PASCAL SelectDoodads(HWND, unsigned, WORD, LONG);
  219. BOOL FAR PASCAL SelectCycle(HWND, unsigned, WORD, LONG);
  220. BOOL FAR PASCAL Select3D(HWND, unsigned, WORD, LONG);
  221. BOOL FAR PASCAL Select3DPlanar(HWND, unsigned, WORD, LONG);
  222. BOOL FAR PASCAL Select3DSpherical(HWND, unsigned, WORD, LONG);
  223. BOOL FAR PASCAL SelectFullScreen(HWND, unsigned, WORD, LONG);
  224. BOOL FAR PASCAL Status(HWND, unsigned, WORD, LONG);
  225. HANDLE FAR PASCAL OpenDlg(HWND, unsigned, WORD, LONG);
  226. void SeparateFile(HWND, LPSTR, LPSTR, LPSTR);
  227. void UpdateListBox(HWND);
  228. void AddExt(PSTR, PSTR);
  229. void ChangeDefExt(PSTR, PSTR);
  230. HDC PASCAL GetPrinterDC();
  231.